package com.screen.screendisplay.service.impl.electric;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.screen.screendisplay.entity.electric.ElectricOpermonEquipFix;
import com.screen.screendisplay.mapper.electric.ElectricOpermonEquipFixMapper;
import com.screen.screendisplay.service.electric.ElectricOpermonEquipFixService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 运行监测机组检修监测表 服务实现类
 * </p>
 *
 * @author xuesong
 * @since 2025-08-23
 */
@Service
public class ElectricOpermonEquipFixServiceImpl extends ServiceImpl<ElectricOpermonEquipFixMapper, ElectricOpermonEquipFix> implements ElectricOpermonEquipFixService {

    /**
     * 机组检修情况
     * @param year
     * @return
     */
    @Override
    public List<ElectricOpermonEquipFix> opermonEquip(Integer year) {
        LambdaQueryWrapper<ElectricOpermonEquipFix> lqw = new LambdaQueryWrapper<>();
        lqw.eq(ElectricOpermonEquipFix::getYear, year);
        return this.list(lqw);
    }

}
